/* Increased specificity to override theme defaults */
pre {
  position: relative;
}

.hljs.hljs {
  color: #1e1e1e;
  white-space: pre-wrap;
  background-color: rgb(231, 250, 255);
  /* base 20px + header height */
  margin: 40px 0 20px;
  margin-left: 15px;
  margin-right: -15px;
  border: 1px solid #f0f0f0;
  border-radius: 6px;
  padding: 1em;
  max-width: 90%;
  box-shadow: 0px 0 rgba(50, 51, 48, 0.07), 0px 0 rgba(50, 51, 48, 0.07);
}

.installationContainer .hljs.hljs {
  max-width: 100%;
}

.hljs::before {
  content: "";
  display: block;
  font-size: 11px;
  font-weight: bold;
  height: 30px;
  line-height: 30px;
  padding: 0 10px;
  position: absolute;
  margin-left: 15px;
  right: 0;
  bottom: 100%;
  left: 0;
  z-index: 1;
  font-family: monospace;
}

/* CSS needs to be listed first so that others can overwrite */
.hljs.language-css::before {
  content: "CSS";
}

.hljs.language-diff::before {
  content: "Diff";
}

.hljs.language-js::before,
.hljs.language-javascript::before {
  content: "JavaScript";
}

.hljs.language-jsx::before {
  content: "JSX";
}

.hljs.language-json::before {
  content: "JSON";
}

.hljs.language-json5::before {
  content: "JSON5";
}

.hljs.language-sh::before,
.hljs.language-shell::before,
.hljs.language-bash::before {
  content: "Shell";
}

.hljs.language-ts::before {
  content: "TypeScript";
}

.hljs.language-html::before {
  content: "HTML";
}

.hljs.language-yaml::before {
  content: "YAML";
}

.hljs.language-sbt::before {
  content: "Sbt";
}

.hljs.language-gradle::before {
  content: "build.gradle";
}

.hljs.language-scala::before {
  content: "Scala";
}

.hljs.language-java::before {
  content: "Java";
}

pre .btn-icon {
  position: absolute;
  top: -30px;
  z-index: 2;
  cursor: pointer;
  border: 1px solid transparent;
  padding: 0;
  color: $primaryColor;
  background-color: transparent;
  height: 30px;
  transition: all 0.25s ease-out;
  font-family: monospace;
}

pre .btn-icon:hover {
  color: #000;
  text-decoration: none;
}

.btn-icon__body {
  align-items: center;
  display: flex;
}

.btn-icon svg {
  fill: currentColor;
  margin-right: 0.4em;
}

.btn-icon__label {
  font-size: 11px;
}

.btn-clipboard {
  right: 15%;
}

.installationContainer .btn-clipboard {
  right: 5%;
}
